package edu.kaist.cs408.pof.backend.dao;

import edu.kaist.cs408.pof.common.model.*;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/9/12
 * Time: 9:55 PM
 * To change this template use File | Settings | File Templates.
 */
@Configuration
public class DaoInit extends DaoBase {

	@PostConstruct
	private void init() {
		morphia.map(RestaurantVo.class);
		morphia.map(DishVo.class);
		morphia.map(KaistianVo.class);
		morphia.map(TalkVo.class);
		morphia.map(RestaurantOwnerVo.class);

		datastore.ensureIndexes();
	}
}
